package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.OrderGoods;
import com.weixing.mall.provider.model.dto.CustomerChgOrderGoodsDto;
import com.weixing.mall.provider.model.vo.FrontOrderGoodsVo;
import com.weixing.mall.provider.model.vo.OrderGoodsVo;

import java.util.List;

/**
 * <p>
 * 订单模块-订单关联商品表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface IOrderGoodsService extends IService<OrderGoods> {


    Long getProductId(String productSkuDesp, Long goodsId);

    void customerChgOrder(CustomerChgOrderGoodsDto customerChgOrderGoodsDto);

    FrontOrderGoodsVo selectByOrderId(Long id);

    void chgGoodsProductId(Long id, Long priductId);

    List<FrontOrderGoodsVo> selectFrontOrderGoodsVoByOrderId(Long orderId);

    OrderGoodsVo findByOrderId(Long orderId);

    List<OrderGoods> selectByOrderStatus(Integer orderStatus,Integer orderType,Long [] ids);

    OrderGoods getByOrderId(Long orderId);

    void updateGoodsTag(List<Long> orderList);
}
